package day4_thread_safe.exclusive;

public class SomeClass {

    synchronized void m1() { }

    synchronized static void m2() { }

    void m3() { }

    void m4() {
        synchronized (this) { }
    }

    void m5() {
        synchronized (SomeClass.class) { }
    }

    Object o1 = new Object();
    void m6() {
        synchronized (o1) { }
    }

    static Object o2 = new Object();
    void m7() {
        synchronized (o2) { }
    }
}
